import { SingleInstance } from "./singleinstance";


async function run(){
    const driver = SingleInstance.create_driver();

    await driver.get('https://www.baidu.com/');

    const ele = await driver.findElement({css:'a[name="tj_briicon"]'});

    const actions =  driver.actions();

    await actions.move({origin:ele}).pause(1000).perform();

    const mp3 = await driver.findElement({css:'a[name="tj_mp3"]'});

    await actions.move({origin:mp3}).click().perform();

}

run();